package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.NgsWkzbq2;
import com.zhijian.medical.entity.vo.request.NgsWkzbq2SearchVo;
import com.zhijian.medical.entity.vo.response.NgsWkzbq2Vo;

import java.util.List;

public interface NgsWkzbq2Mapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据实验id删除
     *
     * @param ngsId
     * @return
     */
    int deleteByNgsId(Long ngsId);

    int insert(NgsWkzbq2 record);

    int insertSelective(NgsWkzbq2 record);

    NgsWkzbq2 selectByPrimaryKey(Long id);

    /**
     * 实验id查询po
     *
     * @param ngsId
     * @return
     */
    NgsWkzbq2 selectByNgsId(Long ngsId);

    int updateByPrimaryKeySelective(NgsWkzbq2 record);

    int updateByPrimaryKey(NgsWkzbq2 record);

    int count(NgsWkzbq2SearchVo ngsWkzbq2SearchVo);

    List<NgsWkzbq2Vo> selectList(NgsWkzbq2SearchVo ngsWkzbq2SearchVo);

    NgsWkzbq2Vo selectVoById(Long id);

    /**
     * 实验id查询vo
     *
     * @param ngsId
     * @return
     */
    NgsWkzbq2Vo selectVoByNgsId(Long ngsId);
}